<?php
/**
 * Created by novebeta.
 * Date: 2/5/13
 * Time: 5:39 AM
 */
?>
<div style="padding:5px 5px">
<div class="font24 fontfamcalibry">Search Results for: "<?php echo CHtml::encode($term); ?>"</div>
<?php if (!empty($results)): ?>
<?php foreach($results as $result):
 $isi=$result->content;
 $gambar=u::getImage($result->content,122,90,'');
 $bersihkan=strip_tags(trim($isi));
 $isi= str_replace("&nbsp;","",$bersihkan);
        ?>
    <div  class="judul_news">Judul: <?php echo $query->highlightMatches(CHtml::encode($result->title)); ?></div>
    <div  class="fontcolorbiru font14 fontfamcalibry">Link: <?php echo CHtml::link($query->highlightMatches(CHtml::encode($result->link)), CHtml::encode($result->link)); ?></div>
    <div class="isi">Isi: <?php echo $gambar.' '.$query->highlightMatches(u::break_words($isi,500,'')); ?></div>
    <hr/>
    <?php endforeach; ?>

<?php else: ?>
<p class="error">No results matched your search terms.</p>
<?php endif; ?>

</div>